package cn.dust.design.pattern.structural.facade.Advertisement;

public class Charge {
    private int basicCharge=12;
    CheckWord checkWord;
    int charge;

    public Charge(CheckWord checkWord) {
        this.checkWord = checkWord;
    }

    public void setCharge(){
        charge=checkWord.getAmount()*basicCharge;
    }

    public void giveCharge(){
        System.out.println("广告费用"+charge+"元");
    }
}
